﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using PureMVC.Interfaces;
using PureMVC.Patterns;
using ContactList.ContactServices;

namespace ContactList.Controller
{
    public class GetAllContactsCommand : SimpleCommand
    {
        public override void Execute(INotification notification)
        {
            base.Execute(notification);

            ContactServicesClient client = new ContactServicesClient();
            client.GetAllContactsCompleted += new EventHandler<GetAllContactsCompletedEventArgs>(client_GetAllContactsCompleted);
            client.GetAllContactsAsync();
        }

        void client_GetAllContactsCompleted(object sender, GetAllContactsCompletedEventArgs e)
        {
            MessageBox.Show("Not implemented yet.");
        }
    }
}
